<%@ page language="java" contentType="text/html; charset=utf8"
	pageEncoding="utf8"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>


<form:form class="form-signin" method="POST" action="registration"
	commandName="user">
	<h3 align="center">Registration</h3>

	<c:set var="newScoreErrors">
		<form:errors align="center" path="*" />
	</c:set>
	<c:if test="${not empty newScoreErrors}">
		<div class="alert alert-error">${newScoreErrors}</div>

	</c:if>

	<input type="text" required class="form-control" name="login"
		placeholder='login' />
		<form:errors path="login" cssClass="error" />
	<input type="password" required class="form-control" name="password"
		placeholder="password" />
	<input type="password" required class="form-control"
		name="repeatPassword" placeholder="repeat password" />
	<input type="text" required class="form-control" name="firstname"
		placeholder="firstname" />
	<input type="text" required class="form-control" name="lastname"
		placeholder="lastname" />
	<input type="email" required class="form-control" name="email"
		placeholder="email" />
	<input type="text" required class="form-control" name="phone"
		placeholder="phone" />
	<input type="hidden" required class="form-control" name="active"
		value="true" />
	<input class="btn" type="reset" value="Очистить" />
	<input class="btn btn-primary pull-right" type="submit"
		value="Registration" />
</form:form>
